import request from '@/utils/request'

// 查询列表
export function listReceive(query) {
  return request({
    url: '/sale/receive/list',
    method: 'get',
    params: query
  })
}

// 查询列表
export function listAll(query) {
  return request({
    url: '/sale/receive/listAll',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getReceive(receiveRecordId) {
  return request({
    url: '/sale/receive/' + receiveRecordId,
    method: 'get'
  })
}

// 新增
export function addReceive(data) {
  return request({
    url: '/sale/receive',
    method: 'post',
    data: data
  })
}

// 修改
export function updateReceive(data) {
  return request({
    url: '/sale/receive',
    method: 'put',
    data: data
  })
}

// 删除
export function delReceive(receiveRecordId) {
  return request({
    url: '/sale/receive/' + receiveRecordId,
    method: 'delete'
  })
}
